/// code : 200
/// data : {"avator":"","email":"123","gender":0,"nickname":"","role":0,"telephone":"18357001024","userId":"111232","username":"sam"}
/// message : "成功"

class LoginData {
  int? _code;
  Data? _data;
  String? _message;

  int? get code => _code;
  Data? get data => _data;
  String? get message => _message;

  LoginData({
      int? code, 
      Data? data, 
      String? message}){
    _code = code;
    _data = data;
    _message = message;
}

  LoginData.fromJson(dynamic json) {
    _code = json["code"];
    _data = json["data"] != null ? Data.fromJson(json["data"]) : null;
    _message = json["message"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["code"] = _code;
    if (_data != null) {
      map["data"] = _data?.toJson();
    }
    map["message"] = _message;
    return map;
  }

}

/// avator : ""
/// email : "123"
/// gender : 0
/// nickname : ""
/// role : 0
/// telephone : "18357001024"
/// userId : "111232"
/// username : "sam"

class Data {
  String? _avator;
  String? _email;
  int? _gender;
  String? _nickname;
  int? _role;
  String? _telephone;
  String? _userId;
  String? _username;

  String? get avator => _avator;
  String? get email => _email;
  int? get gender => _gender;
  String? get nickname => _nickname;
  int? get role => _role;
  String? get telephone => _telephone;
  String? get userId => _userId;
  String? get username => _username;

  Data({
      String? avator, 
      String? email, 
      int? gender, 
      String? nickname, 
      int? role, 
      String? telephone, 
      String? userId, 
      String? username}){
    _avator = avator;
    _email = email;
    _gender = gender;
    _nickname = nickname;
    _role = role;
    _telephone = telephone;
    _userId = userId;
    _username = username;
}

  Data.fromJson(dynamic json) {
    _avator = json["avator"];
    _email = json["email"];
    _gender = json["gender"];
    _nickname = json["nickname"];
    _role = json["role"];
    _telephone = json["telephone"];
    _userId = json["userId"];
    _username = json["username"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["avator"] = _avator;
    map["email"] = _email;
    map["gender"] = _gender;
    map["nickname"] = _nickname;
    map["role"] = _role;
    map["telephone"] = _telephone;
    map["userId"] = _userId;
    map["username"] = _username;
    return map;
  }

}